package com.example.demo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * WAR包系统启动器
 *
 * @author lilu
 * @date 2021/1/10 11:47 下午
 * @since 1.0.0
 */
public class ServletInitializer extends SpringBootServletInitializer {

    /**
     * WAR包部署执行入口
     *
     * @author lilu
     * @date 2021/1/10 11:47 下午
     * @since 1.0.0
     *
     * @param application
     * @return org.springframework.boot.builder.SpringApplicationBuilder
     * @throws
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DemoApplication.class);
    }

}
